/**
 * @author TuanNT - copyright 2013
 */
package com.h2psoft.truyen.tranh.dialog;

import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;

import com.h2psoft.truyen.tranh.R;

public class LoadingDialog extends Dialog {

	public LoadingDialog(Activity macti) {
		super(macti, R.style.H2psoftDialogTheme);
	}

	public LoadingDialog(Context context) {
		super(context, R.style.H2psoftDialogTheme);
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.progress_dialog);
		LayoutParams lp = getWindow().getAttributes();
		lp.dimAmount = 0.7f;
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
	}
}
